From a5ca03ea2f48ceedd835ba938999dc9c5e6a4690 Mon Sep 17 00:00:00 2001 From: Andrew Cooper Date: Tue, 3 Dec 2013 09:54:12 +0100 Subject: [PATCH] x86: be more power-efficient when waiting forever The effect is unchanged, but the processor will be spending most of its time in the C1 or C1E power state rather than C0. Signed-off-by: Andrew Cooper Acked-by: Keir Fraser --- xen/arch/x86/traps.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xen/arch/x86/traps.c b/xen/arch/x86/traps.c index d8b3eac15a..8c355e547c 100644 --- a/xen/arch/x86/traps.c +++ b/xen/arch/x86/traps.c @@ -1448,7 +1448,8 @@ void __init do_early_page_fault(struct cpu_user_regs *regs) printk("Stack dump: "); while ( ((long)stk & ((PAGE_SIZE - 1) & ~(BYTES_PER_LONG - 1))) != 0 ) printk("%p ", _p(*stk++)); - for ( ; ; ) ; + for ( ; ; ) + halt(); } } -- 2.30.2